/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.fd.domain.req.documentShare;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

import com.xy.lang.validation.annotation.AlertMessage;

/**
 *
 *
 * @author wcs
 * @date 2021-2-8
 */
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Data
public class ListDocumentShareRequest {

	@NotNull(message = "pageIndexRequired")
	@AlertMessage(code = "pageIndexRequired", msg = "页索引不能为空")
	private Integer pageIndex;

	@NotNull(message = "pageSizeRequired")
	@AlertMessage(code = "pageSizeRequired", msg = "页大小不能为空")
	private Integer pageSize;

	/**
	 * 分享方向
	 */
	@NotNull(message = "shareDirectionRequired")
	@AlertMessage(code = "shareDirectionRequired", msg = "分享方向不能为空")
	private Integer shareDirection;

	/**
	 * 公共id，当前为“分享我的”时，此ID为分享人id
	 * 		  当前为“我分享的”时，此ID为分享目标id
	 */
	private Long id;

	/**
	 * 状态：0-取消，1-永久有效，2-限时有效，3-失效
	 */
	private Integer status;

	/**
	 * 分享类型 0 文档 1 文件夹 2 知识库
	 */
	private Integer shareType;

	/**
	 * 分享目标类型 0 用户 1 部门
	 */
	private Integer shareTargetType;


}
